package com.liu.swgger2.controller;


import com.liu.common.domain.ResultVo;
import com.liu.swgger2.model.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

@RestController
@Api(tags = "用户管理接口")
@RequestMapping("/user")
public class UserController {


      @PostMapping
      @ApiOperation("根据用户信息添加用户")
//      @ApiImplicitParams({
//              @ApiImplicitParam(name = "userName", value = "用户名", defaultValue = "李四"),
// @ApiImplicitParam(name = "user", value = "用户信息", defaultValue = "", required = true)
//      })


     public ResultVo addUser(@RequestBody User User){



          return  ResultVo.success("添加成功");

     }




    
}
